/* ========== GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", serif;
  background-color: #fdfaf6; /* lebih hangat daripada #fefefe */
  color: #111; /* warna teks netral */
  line-height: 1.6;
}

/* === HEADER GLOBAL (PAKAI YANG PERTAMA) === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #ddd;
}

header .logo {
  font-size: 1.6rem;
  font-weight: normal;
  color: #7b4c5b;
  margin: 0;
}

/* nav default desktop */
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 2px;
}

nav ul li a.active {
  border-bottom: 1px solid #111;
}

/* hamburger button (hidden di desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: #111;
  border-radius: 2px;
}

/* responsive header */
@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 60px;
    right: 40px;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

/* social inline icons */
.social{ display:flex; gap:0px; align-items:right; }
.icon-link{ display:inline-flex; width:22px; height:22px; color:var(--muted); align-items:center; justify-content:center; }
.icon-link svg{ width:18px; height:18px; display:block; color:var(--muted); }

/* WRITINGS PAGE */
.writings-area {
  display: grid;
  grid-template-columns: 2fr 1fr; /* kiri teks, kanan gambar */
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 40px;
}

.writings-text {
  padding-right: 20px;
}

.writings-text h2 {
  margin-top: 20px;
  margin-bottom: 16px;
  color: #7b4c5b;
}

.books-list p {
  margin: 10px 0;
  line-height: 1.6;
}

.writings-photo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.writings-photo img {
  max-width: 260px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ========== BOOKS PAGE ========== */

/* Layout utama */
.layout {
  display: flex;               /* bikin sejajar kiri-kanan */
  justify-content: space-between;
  align-items: flex-start;     /* biar rata atas */
  gap: 60px;                   /* jarak teks ↔ gambar */
  max-width: 1200px;           /* biar gak terlalu lebar */
  margin: 100px auto 0;        /* kasih jarak dari header + center page */
  padding: 0 20px;             /* jarak samping */
}

.text-container {
  flex: 2;                     /* ambil ruang lebih lebar */
}

.book-container {
  flex: 1;                     /* ambil ruang lebih sempit */
  display: flex;
  flex-direction: row;      /* gambar tetap vertikal */
  gap: 20px;
}

.book-cover {
  width: 200px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 1s ease;
}

.book-cover.active {
  transform: scale(1.05);
}

.main {
  width: 100%;
  max-width: none;    /* ⬅️ hapus batasan lebar */
  margin: 0;          /* ⬅️ hapus auto center */
  padding: 2rem 3rem;
}


/* ===== ABOUT SECTION ===== */
.about-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 100px auto;
  padding: 0 40px;
  align-items: start;
}
.about-title {
  font-size: 56px;
  font-weight: 400;
  color: #7b4c5b;
  margin-bottom: 24px;
  font-family: "TAN Mon Cheri", serif;
  position: relative;
}
.about-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: #7b4c5b;
  margin-top: 14px;
}
.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 18px;
  font-family: Georgia, serif;
}

.about-photo {
    flex: 1; /* Mengambil 1/3 ruang */
    text-align: right;
}
.photo-frame {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 15% 15%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
@media (max-width: 768px) {
  .about-area {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-title::after { margin: 14px auto 0; }
  .photo-frame {
    margin: 0 auto;
    border-radius: 0 0 40% 40% / 0 0 10% 10%;
  }
}

/* ========== ANIMATIONS ========== */
.fade-in {
  animation: fadeIn 0.7s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.shop-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 100px;
  padding: 50px 20px;
}

.shop-cover {
  flex-shrink: 0;
}

.shop-cover img {
  width: 260px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.book-details {
  display: flex;
  flex-direction: column;   /* atur urutan vertikal */
  align-items: flex-start;  /* rata kiri */
  gap: 12px;                /* kasih jarak antar elemen */
  margin-top: 110px;
  margin-left: 100px;        /* geser semua dari cover */
}

.book-details h2 {
  font-size: 28px;
  margin: 0;                /* hapus margin bawaan */
}

.book-details .price {
  font-size: 20px;
  color: #444;
  margin: 0 0 10px 0;       /* kasih jarak ke bawah */
}

.book-details .buy-now {
  display: inline-block;
  background-color: #d4a017;  /* warna emas */
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  margin-left: 20px;          /* geser tombol ke kanan */
  transition: background 0.3s ease;
}

.book-details .buy-now:hover {
  background-color: #b68910;  /* warna lebih gelap pas hover */
}




/* ===== NAV FIX ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul li a {
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 6px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #7b4c5b;
}

nav ul li a.active {
  border-bottom: 2px solid #7b4c5b;
}


/* ========== CONTACT PAGE ========== */
.contact-container {
  max-width: 600px;
  margin: 70px auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.contact-container h2 {
  text-align: center;
  margin-bottom: 30px;
}
form {
  display: flex;
  flex-direction: column;
}
label {
  margin-bottom: 6px;
  font-weight: 500;
}
input, textarea {
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.send-btn {
  background: #000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.send-btn:hover {
  background: #333;
}
.notif {
  text-align: center;
  margin-top: 15px;
  color: green;
  font-weight: 500;
}

.quantity-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-container input {
  width: 50px;
  text-align: center;
  font-size: 16px;
  padding: 6px;
}

.qty-btn {
  background: #d4a017;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.qty-btn:hover {
  background: #b68910;
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}
.footer-left a, .footer-right a {
  color: black;
  text-decoration: none;
  font-weight: 600;
}
.footer-right a {
  margin-left: 18px;
}
